<?
//更新授权
$file = $_SERVER['DOCUMENT_ROOT'] . '/key.txt';
$re = file_get_contents('http://key.tuddd.com/api/key.php?key=' . urlencode(file_get_contents($file)));
$re = json_decode($re);
if ($re->status == 'success') {
    file_put_contents($file, $re->key);
} else {
    exit('连接授权服务器失败');
}